package com.lichuang.fruitvarietysm.goods.mapper;

import com.lichuang.fruitvarietysm.goods.entity.GoodsDetailImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-05
 */
@Repository
public interface GoodsDetailImgMapper extends BaseMapper<GoodsDetailImg> {
    /**
     * 根据商品id查对应的中间图片
     * @param goods_id
     * @return
     */
    List<GoodsDetailImg> sMiddle_img(@Param("goods_id")Integer goods_id);

    /**
     * 根据商品id查对应的商品大图片即详细信息图片
     * @param goods_id
     * @return
     */
    List<GoodsDetailImg> sLarge_img(@Param("goods_id")Integer goods_id);
}
